package bam.service.impl;

import java.util.List;

import bam.dao.AreaDao;
import bam.entity.Area;
import bam.service.AreaService;

public class AreaServiceImpl implements AreaService {
private AreaDao areaDao;
	public int selectAreaNum() throws Exception {
		return areaDao.selectAreaNum();
	}
	public List<Area> selectArea() throws Exception {
		return areaDao.selectArea();
	}
	
	public void setAreaDao(AreaDao areaDao) {
		this.areaDao = areaDao;
	}
	public Area selectAreaOne(int areaid) throws Exception {
		return areaDao.selectAreaOne(areaid);
	}
}
